//
//  SimpleDownloadManager+DefualtStorePath.h
//  etionCBLogic
//
//  Created by wjxfhxy on 14-5-5.
//  Copyright (c) 2014年 GuangZhouXuanWu. All rights reserved.
//

@interface XMSSimpleDownloadManager (DefualtStorePath)

+ (NSString*)currentSimpleDownloadManagerStorePath;

- (void)addDownloadTask:(NSString *)szUrl inDefaultPathWithAttachment:(id)attachment;

@end


@interface XMSSimpleDownloadManager (FileHTTPAddress)

- (void)downloadFile:(NSString *)fileName withStorePath:(NSString *)storePath attachment:(id)attachment;

- (void)downloadThumbImageFile:(NSString *)fileName withStorePath:(NSString *)storePath attachment:(id)attachment;

/**
 *  下载指定大小的缩略图
 *
 *  @param fileName   图片名字
 *  @param thumbSize  指定大小，会通过在原来的URL上加入“?thumbSize=WidthxHeight”，需通过operateNeedTransferURLBlock进行二次处理
 *  @param storePath  本地存储路径
 *  @param attachment 绑定值
 */
- (void)downloadThumbImageFile:(NSString *)fileName thumbSize:(CGSize)thumbSize withStorePath:(NSString *)storePath attachment:(id)attachment;

- (BOOL)isContainDownloadFile:(NSString *)fileName;

- (BOOL)isContainDownloadThumbImageFile:(NSString *)fileName;

@end
